package com.liujit.bms.app.domain.params;

import com.liujit.common.domain.params.BaseParams;
import com.liujit.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Description 博客会员请求参数
 * @Author liujun
 * @Date 2021-07-13 11:10:50
 */
@Data
@ApiModel(value = "BlogMemberParams", description = "博客会员请求参数")
public class BlogMemberParams extends BaseParams {

    @ApiModelProperty(value = "小程序openId")
    @Length(max = 32, message = "小程序openId最大长度32")
    @NotNull(message = "小程序openId不能为空", groups = AddGroup.class)
    private String openId;

    @ApiModelProperty(value = "昵称")
    @Length(max = 20, message = "昵称最大长度20")
    private String nickName;

    @ApiModelProperty(value = "头像")
    @Length(max = 520, message = "头像最大长度520")
    private String avatar;

    @ApiModelProperty(value = "性别：0、未知。1、男。2、女。")
    private Short gender;

    @ApiModelProperty(value = "手机号")
    @Length(max = 20, message = "手机号最大长度20")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    @Length(max = 32, message = "邮箱最大长度32")
    private String email;

    @ApiModelProperty(value = "个性签名")
    @Length(max = 30, message = "个性签名最大长度30")
    private String signature;

    @ApiModelProperty(value = "省")
    @Length(max = 20, message = "省最大长度20")
    private String province;

    @ApiModelProperty(value = "市")
    @Length(max = 20, message = "市最大长度20")
    private String city;

    @ApiModelProperty(value = "区")
    @Length(max = 20, message = "区最大长度20")
    private String area;

    @ApiModelProperty(value = "详细地址")
    @Length(max = 32, message = "详细地址最大长度32")
    private String address;

    @ApiModelProperty(value = "启用：1、是。0、否。")
    private Short enabled;
}